package com.lyx.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyx.question.dto.PaperResultDto;
import com.lyx.question.dto.PaperWitnQuestionDto;
import com.lyx.question.entity.Paper;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 14667
 * @date 2022/7/26 9:56
 */
@Service
public interface PaperService extends IService<Paper> {

    PaperWitnQuestionDto generatePaperByChapter(HttpServletRequest request, Integer chapterId);

    PaperWitnQuestionDto randomGeneratePaper(HttpServletRequest request, Integer chapterId);

    void submitPaper(PaperWitnQuestionDto paperWitnQuestionDto, HttpServletRequest request);

    PaperResultDto getPaperResult(Integer paperId, HttpServletRequest request);

    void autoSubmitPaper(PaperWitnQuestionDto paperWitnQuestionDto);

}
